package com.whosly.action.log.controller;

import com.whosly.action.log.annotation.RMethodAction;
import com.whosly.rapid.data.resp.pojo.response.NormalResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class CurrentTimeController {

    @GetMapping("/app/getCurrentTime")
    @RMethodAction(name = "获取服务端时间")
    public NormalResponse<Date> getAppCurrentTime(@RequestParam("type") Integer type){
        return NormalResponse.success(new Date());
    }

}
